import request from '@/router/axios';

export const getList = (current, size, descs, params) => {
  return request({
    url: '/api/kettle/tasklog/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      descs
    }
  })
}

export const getOverviewList = (current, size, params) => {
  return request({
    url: '/api/kettle/tasklog/overview_list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (logId) => {
  return request({
    url: `/api/kettle/tasklog/detail`,
    method: 'get',
    params: {
      logId
    }
  })
}
